package Models;

import java.util.ArrayList;

/**
 * @author Morten
 */
public class Kitchen
{
	private static int nextId = 100;
	private int id;
	private Item tableTop;
	private ArrayList<Item> cupboards;
	private ArrayList<Item> drawers;
	private String name;
	private ArrayList<Item> appliances;
	private boolean activated = true;
	private double price;

	public Kitchen(String name, double price, Item tableTop, ArrayList<Item> cupboards, ArrayList<Item> drawers, ArrayList<Item> appliances)
	{
		this.edit(name, price, tableTop, cupboards, drawers, appliances);
		this.id = Kitchen.nextId;
		Kitchen.nextId++;
	}

	public void edit(String name, double price, Item tableTop, ArrayList<Item> cupboards, ArrayList<Item> drawers, ArrayList<Item> appliances)
	{
		this.setName(name);
		this.setPrice(price);
		this.setTableTop(tableTop);
		this.setCupboards(cupboards);
		this.setDrawers(drawers);
		this.setAppliances(appliances);
	}

	public ArrayList<Item> getAppliances()
	{
		return appliances;
	}

	public ArrayList<Item> getCupboards()
	{
		return cupboards;
	}

	public ArrayList<Item> getDrawers()
	{
		return drawers;
	}

	public int getId()
	{
		return id;
	}

	public String getName()
	{
		return name;
	}

	public Item getTableTop()
	{
		return tableTop;
	}

	public double getPrice()
	{
		return price;
	}

	public boolean isActivated()
	{
		return activated;
	}

	public void setActivated(boolean activated)
	{
		this.activated = activated;
	}

	public void setAppliances(ArrayList<Item> appliances)
	{
		this.appliances = appliances;
	}

	public void setCupboards(ArrayList<Item> cupboards)
	{
		this.cupboards = cupboards;
	}

	public void setDrawers(ArrayList<Item> drawers)
	{
		this.drawers = drawers;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public void setTableTop(Item tableTop)
	{
		this.tableTop = tableTop;
	}

	public void setPrice(double price)
	{
		this.price = price;
	}
}
